<script src="/res/editor/js/webeditor.js" tppe="text/javascript"></script>
<script src="/js/cartoon.js" tppe="text/javascript"></script>
<form>
<table class="mlist"  cellpadding="0" width="50%" cellspacing="0" style="float: left">
	<thead align="center">
		<td nowrap>id</td>
		<td nowrap>标题</td>
		<td nowrap>图片</td>
		<td nowrap>描述</td>
		<td nowrap>创建时间</td>
		<td nowrap>操作</td>
	</thead>	
	<?if($this->ret['data']):?>
	<? foreach ($this->ret['data'] as $row):?>
	<tr align="left">
		<td nowrap><?= $row['id']?></td>
		<td nowrap><a href="<?=$row['link']?>" target="_blank" ><?= $row['title']?></a></td>
		<td nowrap><a href="<?=$row['link']?>" target="_blank" ><img src="<?=$row['img_url']?>" alt="<?= $row['title']?>" /></a></td>
		<td>
		<?=$row['info']?>
		</td>
		<td>
		<?=date('Y-m-d H:i',$row['add_time'])?>
		</td>
		<td nowrap align="left">
		<a href="javascript:void(0);" onclick="Cartoon.del_roll(<?=$row['id']?>)">删除</span>
		</td>
	</tr>
	<? endforeach;?>
	<?else:?>
	<tr align="center">
	<td colspan="10">暂无记录</td>
	</tr>
	<?endif;?>
	<thead>
	<td colspan="8"><?=$this->ret['pages']?></td>
	</thead>
</table>
</form>
<div style="float:left; padding-left: 10px">

</div>
<form  action="<?=self::_makeURL('cartoon','roll','add')?>" method="POST" enctype="multipart/form-data">
<table class="mlist"  cellpadding="0" width="50%" cellspacing="0" style="float: left">
	<thead align="center">
		<td nowrap colspan="2">添加</td>
	</thead>
	<tr align="left">
		<td nowrap>标题：</td>
		<td nowrap><input class="input_text"  type="text" name="title"  size="25" />
	</td>
	</tr>
	<tr align="left">
		<td nowrap>图片：</td>
		<td nowrap>
		<input type="file" name="imgurl" id="imgurl" />
		</td>
	</tr>
	<tr align="left">
		<td nowrap>链接：</td>
		<td nowrap>
		<input type="text" class="input_text" name="link" size="25" />
		</td>
	</tr>
	<tr align="left">
		<td nowrap>描述：</td>
		<td nowrap>
		<textarea name="info"></textarea>
		</td>
	</tr>
	<thead>
	<td colspan="2" align="center"><input type="submit" value="添加" /></td>
	</thead>
</table>
</form>
